import type { App } from "vue";

import { setupRouter } from "@/router/index";
import { setupStore } from "@/store";
import { setupI18n } from "@/i18n";
import { setupElIcons } from "./icons-element";
// import { setupDirective } from "@/directives";
// import { setupPermission } from "./permission";
// import { setupWebSocket } from "./websocket";

const setupPlugins = (app: App<Element>) => {
  // 自定义指令(directive)
  // setupDirective(app);
  // 状态管理(store)
  setupStore(app);
  // 路由(router)
  setupRouter(app);
  // 国际化
  setupI18n(app);
  // Element-plus图标
  setupElIcons(app);
  // 路由守卫
  // setupPermission();
  // WebSocket服务
  // setupWebSocket();
};

export default setupPlugins;
